﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的收藏 - 模切材料小管家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系�?*/
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 64px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 - TDesign 简约风�?*/
        .header {
            background: var(--primary-color);
            color: white;
            padding: var(--space-4) var(--space-4) var(--space-5);
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .back-btn {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .back-btn:hover {
            opacity: 1;
        }
        
        .page-title {
            font-weight: 500;
            font-size: 16px;
        }
        
        .actions {
            display: flex;
            gap: var(--space-5);
        }
        
        .actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .actions i:hover {
            opacity: 1;
        }
        
        /* 收藏类型标签 - TDesign 简约风格*/
        .collection-tabs {
            background: var(--bg-color-container);
            padding: var(--space-3) var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
            display: flex;
            gap: var(--space-2);
            overflow-x: auto;
        }
        
        .collection-tabs .tab-item {
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-medium);
            font-size: 12px;
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
            border: 1px solid var(--border-color-light);
        }
        
        .collection-tabs .tab-item:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .collection-tabs .tab-item.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* 收藏列表 - TDesign 简约风格 */
        .collections-section {
            padding: var(--space-4);
        }
        
        .section-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--space-4);
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: var(--space-2);
            color: var(--error-color);
            font-size: 14px;
        }
        
        .collection-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
        }
        
        .collection-item {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            padding: var(--space-4);
            box-shadow: var(--shadow-1);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
            border: 1px solid var(--border-color-light);
            position: relative;
            overflow: hidden;
        }
        
        .collection-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: var(--error-color);
            border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
        }
        
        .collection-item .material-model {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 16px;
            margin-bottom: var(--space-2);
        }
        
        .collection-item .material-category {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-2);
        }
        
        .collection-item .material-name {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-3);
        }
        
        .collection-item .material-info {
            margin-top: var(--space-3);
        }
        
        .collection-item .info-row {
            display: flex;
            margin-bottom: var(--space-2);
            font-size: 12px;
            line-height: 1.4;
        }
        
        .collection-item .info-label {
            color: var(--text-placeholder);
            min-width: 80px;
            flex-shrink: 0;
        }
        
        .collection-item .info-value {
            color: var(--text-secondary);
            flex: 1;
        }
        
        .collection-item .location-date-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-2) var(--space-3);
            background: var(--bg-color-secondray);
            border-radius: var(--border-radius-small);
            margin-top: var(--space-2);
            border: 1px solid var(--border-color-light);
        }
        
        .collection-item .location-info {
            display: flex;
            align-items: center;
            color: var(--text-secondary);
            font-size: 12px;
        }
        
        .collection-item .location-info i {
            color: var(--text-placeholder);
            margin-right: var(--space-1);
            font-size: 10px;
        }
        
        .collection-item .date-info {
            color: var(--text-placeholder);
            font-size: 11px;
        }
        
        .collection-item:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-2);
        }
        
        .collection-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-2);
        }
        
        .collection-title {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-primary);
            flex: 1;
            margin-right: var(--space-2);
        }
        
        .collection-type {
            font-size: 11px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            font-weight: 500;
        }
        
        .type-product {
            background: rgba(0, 82, 217, 0.1);
            color: var(--primary-color);
            border: 1px solid rgba(0, 82, 217, 0.2);
        }
        
        .type-material {
            background: rgba(0, 168, 112, 0.1);
            color: var(--success-color);
            border: 1px solid rgba(0, 168, 112, 0.2);
        }
        
        .type-bulk {
            background: rgba(213, 73, 65, 0.1);
            color: var(--error-color);
            border: 1px solid rgba(213, 73, 65, 0.2);
        }
        
        .type-demand {
            background: rgba(237, 123, 47, 0.1);
            color: var(--warning-color);
            border: 1px solid rgba(237, 123, 47, 0.2);
        }
        
        .type-company {
            background: rgba(108, 117, 125, 0.1);
            color: #6c757d;
            border: 1px solid rgba(108, 117, 125, 0.2);
        }
        
        .collection-content {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-3);
            line-height: 1.4;
        }
        
        .collection-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-placeholder);
            font-size: 11px;
            margin-bottom: var(--space-2);
        }
        
        .collection-company {
            display: flex;
            align-items: center;
        }
        
        .collection-company i {
            margin-right: var(--space-1);
            color: var(--primary-color);
            font-size: 10px;
        }
        
        .collection-time {
            color: var(--text-placeholder);
            font-size: 11px;
        }
        
        .collection-actions {
            display: flex;
            gap: var(--space-2);
        }
        
        .action-btn {
            flex: 1;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            border: none;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .action-btn.btn-primary {
            background: var(--primary-color);
            color: white;
        }
        
        .action-btn.btn-primary:hover {
            background: var(--primary-light);
        }
        
        .action-btn.btn-secondary {
            background: var(--bg-color-secondray);
            color: var(--text-primary);
            border: 1px solid var(--border-color-light);
        }
        
        .action-btn.btn-secondary:hover {
            background: var(--border-color-light);
        }
        
        .action-btn.btn-danger {
            background: var(--error-color);
            color: white;
        }
        
        .action-btn.btn-danger:hover {
            background: #c0392b;
        }
        
        /* 散料专用样式 */
        .material-model {
            color: var(--primary-color);
            font-weight: 600;
            font-size: 16px;
            margin-bottom: var(--space-2);
        }
        
        .material-category {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-2);
        }
        
        .material-name {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-3);
        }
        
        .material-info {
            margin-top: var(--space-3);
        }
        
        .info-row {
            display: flex;
            margin-bottom: var(--space-2);
            font-size: 12px;
            line-height: 1.4;
        }
        
        .info-label {
            color: var(--text-placeholder);
            min-width: 80px;
            flex-shrink: 0;
        }
        
        .info-value {
            color: var(--text-secondary);
            flex: 1;
        }
        
        .location-date-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-2) var(--space-3);
            background: var(--bg-color-secondray);
            border-radius: var(--border-radius-small);
            margin-top: var(--space-2);
            border: 1px solid var(--border-color-light);
        }
        
        .location-info {
            display: flex;
            align-items: center;
            color: var(--text-secondary);
            font-size: 12px;
        }
        
        .location-info i {
            color: var(--text-placeholder);
            margin-right: var(--space-1);
            font-size: 10px;
        }
        
        .date-info {
            color: var(--text-placeholder);
            font-size: 11px;
        }
        
        /* 底部导航 - TDesign 简约风格 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            display: flex;
            border-top: 1px solid var(--border-color);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tabbar .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            color: var(--text-placeholder);
            font-size: 10px;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .tabbar .tab-item.active {
            color: var(--primary-color);
        }
        
        .tabbar .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tabbar .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
        
        /* 空状态 - TDesign 简约风格*/
        .empty-state {
            text-align: center;
            padding: var(--space-10) var(--space-5);
            color: var(--text-placeholder);
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: var(--space-4);
            color: var(--border-color);
        }
        
        .empty-state h3 {
            font-size: 14px;
            margin-bottom: var(--space-2);
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .empty-state p {
            font-size: 12px;
            line-height: 1.5;
        }
        
        /* 求购和拼单特殊样式 */
        .demand-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-2);
        }
        
        .demand-title {
            font-weight: 600;
            font-size: 16px;
            color: var(--primary-color);
            flex: 1;
            margin-right: var(--space-2);
        }
        
        .result-type {
            color: white;
            font-size: 10px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            flex-shrink: 0;
        }
        
        /* 材料类型样式 - 对应首页找材料橙色 */
        .collection-item[data-category="material"] .result-type {
            background: var(--accent-color);
        }
        
        /* 加工类型样式 - 对应首页找加工蓝色 */
        .collection-item[data-category="processing"] .result-type {
            background: var(--primary-light);
        }
        
        /* 拼单参与者样式 */
        .participants-section {
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }
        
        .participants-avatars {
            display: flex;
            align-items: center;
        }
        
        .participant-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--bg-color-container);
            background: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
            font-weight: 500;
            margin-left: -6px;
            position: relative;
            z-index: 1;
        }
        
        .participant-avatar:nth-child(1) {
            margin-left: 0;
            background: var(--success-color);
        }
        
        .participant-avatar:nth-child(2) {
            background: var(--accent-color);
        }
        
        .participant-avatar:nth-child(3) {
            background: var(--primary-light);
        }
        
        .participant-avatar:nth-child(4) {
            background: var(--warning-color);
        }
        
        .participant-avatar:nth-child(5) {
            background: var(--error-color);
        }
        
        .participants-text {
            color: var(--text-placeholder);
            font-size: 11px;
            margin-left: var(--space-1);
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="back-btn" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </div>
                <div class="page-title">我的收藏</div>
                <div class="actions">
                    <i class="fas fa-edit" onclick="editMode()"></i>
                    <i class="fas fa-trash" onclick="clearAll()"></i>
                </div>
            </div>
        </div>
        
        <!-- 收藏类型标签 -->
        <div class="collection-tabs">
            <div class="tab-item active" onclick="switchTab('bulk')">散料</div>
            <div class="tab-item" onclick="switchTab('processing')">加工</div>
            <div class="tab-item" onclick="switchTab('material')">材料</div>
            <div class="tab-item" onclick="switchTab('demand')">求购</div>
            <div class="tab-item" onclick="switchTab('group')">拼单</div>
        </div>
        
        <!-- 收藏列表 -->
        <div class="collections-section">
            <div class="section-title">
                <i class="fas fa-heart"></i>
                收藏列表
            </div>
            
            <!-- 散料收藏列表 -->
            <div class="collection-list bulk-list">
                <!-- 散料收藏1 -->
                <div class="collection-item" onclick="viewCollection(1)">
                    <div class="material-model">ST-001</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：单面胶带散料</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">宽度25-75mm，厚度0.1-0.2mm，约500kg</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>浙江杭州</span>
                            </div>
                            <div class="date-info">2024-01-15</div>
                        </div>
                    </div>
                </div>
                
                <!-- 散料收藏2 -->
                <div class="collection-item" onclick="viewCollection(2)">
                    <div class="material-model">OCA-002</div>
                    <div class="material-category">产品分类：光学材料</div>
                    <div class="material-name">产品名称：OCA光学胶散料</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">厚度0.05-0.2mm，透光率90%+，约200kg</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>江苏苏州</span>
                            </div>
                            <div class="date-info">2024-01-14</div>
                        </div>
                    </div>
                </div>
                
                <!-- 散料收藏3 -->
                <div class="collection-item" onclick="viewCollection(3)">
                    <div class="material-model">DT-003</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：双面胶带边角料</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">宽度10-30mm，厚度0.08-0.15mm，约300kg</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东深圳</span>
                            </div>
                            <div class="date-info">2024-01-13</div>
                        </div>
                    </div>
                </div>
                
                <!-- 散料收藏4 -->
                <div class="collection-item" onclick="viewCollection(4)">
                    <div class="material-model">PET-004</div>
                    <div class="material-category">产品分类：薄膜类</div>
                    <div class="material-name">产品名称：PET保护膜散料</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">厚度0.05-0.12mm，宽度20-100mm，约150kg</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东东莞</span>
                            </div>
                            <div class="date-info">2024-01-12</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 加工收藏列表 -->
            <div class="collection-list processing-list" style="display: none;">
                <!-- 加工收藏1 -->
                <div class="collection-item" onclick="viewCollection(5)">
                    <div class="material-model">BOPP-001</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：BOPP单面胶带加工</div>
                    <div class="material-info">
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东省深圳市</span>
                            </div>
                            <div class="date-info">2024-01-15</div>
                        </div>
                    </div>
                </div>
                
                <!-- 加工收藏2 -->
                <div class="collection-item" onclick="viewCollection(6)">
                    <div class="material-model">MASK-001</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：美纹纸胶带加工</div>
                    <div class="material-info">
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>江苏省苏州市</span>
                            </div>
                            <div class="date-info">2024-01-14</div>
                        </div>
                    </div>
                </div>
                
                <!-- 加工收藏3 -->
                <div class="collection-item" onclick="viewCollection(7)">
                    <div class="material-model">PE-001</div>
                    <div class="material-category">产品分类：薄膜类</div>
                    <div class="material-name">产品名称：PE薄膜加工</div>
                    <div class="material-info">
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>浙江省杭州市</span>
                            </div>
                            <div class="date-info">2024-01-13</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 材料收藏列表 -->
            <div class="collection-list material-list" style="display: none;">
                <!-- 材料收藏1 -->
                <div class="collection-item" onclick="viewCollection(8)">
                    <div class="material-model">BOPP-002</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：BOPP单面胶带</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品规格:</span>
                            <span class="info-value">36mm宽度，100m长度，透明材质</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>江苏省苏州市</span>
                            </div>
                            <div class="date-info">2024-01-15</div>
                        </div>
                    </div>
                </div>
                
                <!-- 材料收藏2 -->
                <div class="collection-item" onclick="viewCollection(9)">
                    <div class="material-model">AC-001</div>
                    <div class="material-category">产品分类：胶粘剂</div>
                    <div class="material-name">产品名称：丙烯酸胶粘剂</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品规格:</span>
                            <span class="info-value">500ml装，透明，高粘性</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>上海市</span>
                            </div>
                            <div class="date-info">2024-01-14</div>
                        </div>
                    </div>
                </div>
                
                <!-- 材料收藏3 -->
                <div class="collection-item" onclick="viewCollection(10)">
                    <div class="material-model">DS-002</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：双面胶带</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品规格:</span>
                            <span class="info-value">12mm宽度，30m长度，透明材质</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东省广州市</span>
                            </div>
                            <div class="date-info">2024-01-13</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 求购收藏列表 -->
            <div class="collection-list demand-list" style="display: none;">
                <!-- 求购收藏1 - 材料 -->
                <div class="collection-item" data-category="material" onclick="viewCollection(11)">
                    <div class="demand-header">
                        <div class="demand-title">OCA-001</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品分类:</span>
                            <span class="info-value">光学材料</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">产品名称:</span>
                            <span class="info-value">OCA光学胶</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">技术参数:</span>
                            <span class="info-value">厚度0.05-0.2mm，透光率90%+</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">要求:</span>
                            <span class="info-value">透光率90%以上，无气泡，符合环保标准</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>浙江杭州</span>
                            </div>
                            <div class="date-info">2024-01-15</div>
                        </div>
                    </div>
                </div>
                
                <!-- 求购收藏2 - 加工 -->
                <div class="collection-item" data-category="processing" onclick="viewCollection(12)">
                    <div class="demand-header">
                        <div class="demand-title">TAPE-001</div>
                        <div class="result-type">加工</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品分类:</span>
                            <span class="info-value">胶带类</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">产品名称:</span>
                            <span class="info-value">单面胶带加工</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">加工要求:</span>
                            <span class="info-value">粘性强，耐高温，符合食品级标准</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>江苏苏州</span>
                            </div>
                            <div class="date-info">2024-01-14</div>
                        </div>
                    </div>
                </div>
                
                <!-- 求购收藏3 - 材料 -->
                <div class="collection-item" data-category="material" onclick="viewCollection(13)">
                    <div class="demand-header">
                        <div class="demand-title">PET-001</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">产品分类:</span>
                            <span class="info-value">薄膜类</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">产品名称:</span>
                            <span class="info-value">PET保护膜</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">技术参数:</span>
                            <span class="info-value">厚度0.05-0.12mm，宽度20-100mm</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">要求:</span>
                            <span class="info-value">透明度高，抗静电，易撕除</span>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东深圳</span>
                            </div>
                            <div class="date-info">2024-01-13</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 拼单收藏列表 -->
            <div class="collection-list group-list" style="display: none;">
                <!-- 拼单收藏1 -->
                <div class="collection-item" onclick="viewCollection(14)">
                    <div class="material-model">OCA-001</div>
                    <div class="material-category">产品分类：光学材料</div>
                    <div class="material-name">产品名称：OCA光学胶</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格数量:</span>
                            <span class="info-value">2000平方米</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">总量:</span>
                            <span class="info-value">2000平方米</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">已参与:</span>
                            <div class="participants-section">
                                <div class="participants-avatars">
                                    <div class="participant-avatar">张</div>
                                    <div class="participant-avatar">李</div>
                                    <div class="participant-avatar">王</div>
                                    <div class="participant-avatar">赵</div>
                                    <div class="participant-avatar">+</div>
                                </div>
                                <span class="participants-text">15人参与</span>
                            </div>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>浙江杭州</span>
                            </div>
                            <div class="date-info">2024-01-15</div>
                        </div>
                    </div>
                </div>
                
                <!-- 拼单收藏2 -->
                <div class="collection-item" onclick="viewCollection(15)">
                    <div class="material-model">TAPE-001</div>
                    <div class="material-category">产品分类：胶带类</div>
                    <div class="material-name">产品名称：单面胶带</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格数量:</span>
                            <span class="info-value">500卷</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">总量:</span>
                            <span class="info-value">500卷</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">已参与:</span>
                            <div class="participants-section">
                                <div class="participants-avatars">
                                    <div class="participant-avatar">陈</div>
                                    <div class="participant-avatar">刘</div>
                                    <div class="participant-avatar">杨</div>
                                    <div class="participant-avatar">+</div>
                                </div>
                                <span class="participants-text">8人参与</span>
                            </div>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东深圳</span>
                            </div>
                            <div class="date-info">2024-01-14</div>
                        </div>
                    </div>
                </div>
                
                <!-- 拼单收藏3 -->
                <div class="collection-item" onclick="viewCollection(16)">
                    <div class="material-model">COND-001</div>
                    <div class="material-category">产品分类：导电材料</div>
                    <div class="material-name">产品名称：导电胶带</div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">规格数量:</span>
                            <span class="info-value">300卷</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">总量:</span>
                            <span class="info-value">300卷</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">已参与:</span>
                            <div class="participants-section">
                                <div class="participants-avatars">
                                    <div class="participant-avatar">冯</div>
                                    <div class="participant-avatar">褚</div>
                                    <div class="participant-avatar">卫</div>
                                    <div class="participant-avatar">蒋</div>
                                    <div class="participant-avatar">+</div>
                                </div>
                                <span class="participants-text">12人参与</span>
                            </div>
                        </div>
                        <div class="location-date-row">
                            <div class="location-info">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>广东深圳</span>
                            </div>
                            <div class="date-info">2024-01-12</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item" onclick="location.href='home.html'">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item" onclick="location.href='demand-list.html'">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item" onclick="location.href='publish-select.html'">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item" onclick="location.href='my-messages.html'">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item active">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 切换收藏类型标签
        function switchTab(type) {
            document.querySelectorAll('.collection-tabs .tab-item').forEach(tab => {
                tab.classList.remove('active');
            });
            event.target.classList.add('active');
            
            // 隐藏所有列表
            document.querySelector('.bulk-list').style.display = 'none';
            document.querySelector('.processing-list').style.display = 'none';
            document.querySelector('.material-list').style.display = 'none';
            document.querySelector('.demand-list').style.display = 'none';
            document.querySelector('.group-list').style.display = 'none';
            
            // 显示对应的列表
            if (type === 'bulk') {
                document.querySelector('.bulk-list').style.display = 'flex';
            } else if (type === 'processing') {
                document.querySelector('.processing-list').style.display = 'flex';
            } else if (type === 'material') {
                document.querySelector('.material-list').style.display = 'flex';
            } else if (type === 'demand') {
                document.querySelector('.demand-list').style.display = 'flex';
            } else if (type === 'group') {
                document.querySelector('.group-list').style.display = 'flex';
            }
            
            console.log('切换到收藏类型', type);
        }
        
        // 查看收藏详情
        function viewCollection(collectionId) {
            alert(`查看收藏详情 ID: ${collectionId}`);
        }
        
        // 编辑模式
        function editMode() {
            alert('进入编辑模式，可以选择多个收藏进行批量操作');
        }
        
        // 清空所有收藏
        function clearAll() {
            if (confirm('确定要清空所有收藏吗？此操作不可恢复！')) {
                alert('已清空所有收藏');
            }
        }
        
        // 收藏操作按钮点击
        document.querySelectorAll('.action-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.stopPropagation();
                const action = this.textContent.includes('查看') ? '查看' : 
                              this.textContent.includes('询价') ? '询价' : 
                              this.textContent.includes('接单') ? '接单' : 
                              this.textContent.includes('联系') ? '联系' : '取消收藏';
                
                if (action === '取消收藏') {
                    if (confirm('确定要取消收藏吗？')) {
                        alert('已取消收藏');
                    }
                } else {
                    alert(`正在${action}...`);
                }
            });
        });
        
        // 收藏项目点击效果
        document.querySelectorAll('.collection-item').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
        
        // 标签点击效果
        document.querySelectorAll('.collection-tabs .tab-item').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.95)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
    </script>
</body>
</html>


